import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';

/**
 * 路由模块
 */
import { SubjectRoutingModule, declarationComponents, entryComponents } from './subjects.routing';

/**
 * 服务列表
 */
import { PermissionService } from './services/permission.service';
import { SubjectsService } from './services/subjects.service';
import { SortablejsModule } from 'angular-sortablejs/dist';
import { ShareModule } from '../../cores/share.module';
import { ModalComponent } from './pages/subject -info/modal.component';
import { PermissionModalComponent } from './pages/permission-manager/permission-modal.component';
import { PermissionGroupModalComponent } from './pages/permission-manager/permission-group-modal.component';

@NgModule({
    imports: [
        FormsModule,
        ShareModule,
        SubjectRoutingModule,
        SortablejsModule,
    ],
    declarations: [
        ModalComponent,
        declarationComponents,
        PermissionModalComponent,
        PermissionGroupModalComponent
    ],
    entryComponents: [
        ModalComponent,
        entryComponents,
        PermissionModalComponent,
        PermissionGroupModalComponent
    ],
    providers: [
        SubjectsService,
        PermissionService
    ]

})
export class SubjectModule { }
